<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*" %>
<br>
<div class="row">
	<div class="col-lg-8">
		<h3>WebSphere Dashboard</h3>
	</div>
	<div class="col-lg-4">
		<div class="pull-right">
			<form class="form-inline" role="form">
					<div class="form-group">
				         <select id="wsregionListSelect" class="form-control">
			               	 <option selected>Region</option>
			             </select>
			       </div>   
			       <div class="form-group">
				         <select id="wsprofileListSelect" class="form-control">
			               	 <option selected>Profile</option>
			             </select>
			       </div> 
			       <div class="form-group">
			           <button type="button" class="btn btn-default form-control" id="wasDashboardSettingBtn"><i class="fa fa-cog"></i></button>
		          </div> 
			</form>
		</div>	
	</div>
</div>
<div id="wasSetting-popover-head" class="hide"><i class="fa fa-cog fa-fw"></i>Setting</div>
<div id="wasSetting-popover-content" class="hide">
	<form onsubmit="return false;" role="form">
      <div class="form-group form-group-sm">
         <label for="refreshInterval">Refresh Interval:</label>
         <input type="text" class="form-control" id="refreshInterval" value="30000"  onchange="$('#wasSetting-popover-content #refreshInterval').attr('value', this.value)"/>
         <p class="help-block"><small>In Milliseconds: For better performance use default value</small></p>
      </div>
     </form>
</div>

<script>
    $(document).ready(function() {
		$('#wasDashboardSettingBtn').popover({ 
		    html : true,
		    placement: 'left',
		    title: function() {
		      return $("#wasSetting-popover-head").html();
		    },
		    content: function() {
		      return $("#wasSetting-popover-content").html();
		    }
		});
		$('#wasDashboardSettingBtn').on('hidden.bs.popover', function () {
		})
    })
</script>